package com.itbac.simglemachinelimiting.bean;

/**
 * 返回值包装
 * @author: BacHe
 * @email: 1218585258@qq.com
 * @Date: 2020/8/15 22:30
 */
public class Rsp {
    //状态码
    private Integer code;
    //备注消息
    private String msg;
    //数据
    private Object data;

    public Rsp() {
    }

    public Rsp(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }


    public Integer getCode() {
        return code;
    }

    public Rsp setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public Rsp setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public Object getData() {
        return data;
    }

    public Rsp setData(Object data) {
        this.data = data;
        return this;
    }

    @Override
    public String toString() {
        return "Rsp{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
